/******************************************************************************
* File description: experimentopenfileui.h
* Function: 实验-打开文件
* Current Version: 1.0.0
* Author: 张宇轩
* Date: 2024-08-31
*  -----
*  Copyright by 博坤生物 .
 *****************************************************************************/
#ifndef EXPERIMENTOPENFILEUI_H
#define EXPERIMENTOPENFILEUI_H

#include <QObject>
#include <QQuickWidget>
#include <QQmlContext>

#include "openfilelocatefileuploadui.h"
#include "openfileothersfileuploadui.h"

class ExperimentOpenFileUI : public QQuickWidget
{
    Q_OBJECT

signals:
    void returnSig();
    void cancel();

private slots:
    void onUploadLocateFile();
    void onUploadOthersFile();

public:
    ExperimentOpenFileUI();
    ~ExperimentOpenFileUI();

public:
    QQmlContext* getContext() const; // 获取qmlcontext
    QObject* getRootObject() const; // 获取rootObject

private:
    QObject *rootObj;

    // 页面
    OpenFileLocateFileUploadUI *locateFileUI;
    OpenFileOthersFileUploadUI *othersFileUI;
};

#endif // EXPERIMENTOPENFILEUI_H
